\hypertarget{a00096}{}\section{E\+:/knet-\/git/knet/knet/rpc\+\_\+object.h 文件参考}
\label{a00096}\index{E\+:/knet-\/git/knet/knet/rpc\+\_\+object.\+h@{E\+:/knet-\/git/knet/knet/rpc\+\_\+object.\+h}}
{\ttfamily \#include \char`\"{}config.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}rpc\+\_\+object\+\_\+api.\+h\char`\"{}}\\*
\subsection*{函数}
\begin{DoxyCompactItemize}
\item 
uint16\+\_\+t \hyperlink{a00096_aaa8a155df38de3bbf2a876b94686d195_aaa8a155df38de3bbf2a876b94686d195}{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 获取数字对象序列化长度 \end{DoxyCompactList}\item 
int \hyperlink{a00096_af0d124108915f859d85fccd58facf12f_af0d124108915f859d85fccd58facf12f}{krpc\+\_\+string\+\_\+set\+\_\+size} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o, uint16\+\_\+t size)
\begin{DoxyCompactList}\small\item\em 设置字符串长度 \end{DoxyCompactList}\item 
void \hyperlink{a00096_a13be7946c84baeebe93977ef511e125f_a13be7946c84baeebe93977ef511e125f}{krpc\+\_\+vector\+\_\+enlarge} (\hyperlink{a00056_a9c07dfc8c3b965f75b09f82fdb1bbb1e_a9c07dfc8c3b965f75b09f82fdb1bbb1e}{krpc\+\_\+object\+\_\+t} $\ast$o)
\begin{DoxyCompactList}\small\item\em 扩展数组 \end{DoxyCompactList}\item 
void \hyperlink{a00096_a79b7c0edd0ee7a8c462d19881589f701_a79b7c0edd0ee7a8c462d19881589f701}{hash\+\_\+value\+\_\+dtor} (void $\ast$v)
\begin{DoxyCompactList}\small\item\em 表值销毁函数 \end{DoxyCompactList}\end{DoxyCompactItemize}


\subsection{函数说明}
\hypertarget{a00096_a79b7c0edd0ee7a8c462d19881589f701_a79b7c0edd0ee7a8c462d19881589f701}{}\index{rpc\+\_\+object.\+h@{rpc\+\_\+object.\+h}!hash\+\_\+value\+\_\+dtor@{hash\+\_\+value\+\_\+dtor}}
\index{hash\+\_\+value\+\_\+dtor@{hash\+\_\+value\+\_\+dtor}!rpc\+\_\+object.\+h@{rpc\+\_\+object.\+h}}
\subsubsection[{hash\+\_\+value\+\_\+dtor}]{\setlength{\rightskip}{0pt plus 5cm}void hash\+\_\+value\+\_\+dtor (
\begin{DoxyParamCaption}
\item[{void $\ast$}]{v}
\end{DoxyParamCaption}
)}\label{a00096_a79b7c0edd0ee7a8c462d19881589f701_a79b7c0edd0ee7a8c462d19881589f701}


表值销毁函数 

\hypertarget{a00096_aaa8a155df38de3bbf2a876b94686d195_aaa8a155df38de3bbf2a876b94686d195}{}\index{rpc\+\_\+object.\+h@{rpc\+\_\+object.\+h}!krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size@{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size}}
\index{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size@{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size}!rpc\+\_\+object.\+h@{rpc\+\_\+object.\+h}}
\subsubsection[{krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}uint16\+\_\+t krpc\+\_\+number\+\_\+get\+\_\+marshal\+\_\+size (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00096_aaa8a155df38de3bbf2a876b94686d195_aaa8a155df38de3bbf2a876b94686d195}


获取数字对象序列化长度 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{返回}
数字对象序列化长度 
\end{DoxyReturn}
\hypertarget{a00096_af0d124108915f859d85fccd58facf12f_af0d124108915f859d85fccd58facf12f}{}\index{rpc\+\_\+object.\+h@{rpc\+\_\+object.\+h}!krpc\+\_\+string\+\_\+set\+\_\+size@{krpc\+\_\+string\+\_\+set\+\_\+size}}
\index{krpc\+\_\+string\+\_\+set\+\_\+size@{krpc\+\_\+string\+\_\+set\+\_\+size}!rpc\+\_\+object.\+h@{rpc\+\_\+object.\+h}}
\subsubsection[{krpc\+\_\+string\+\_\+set\+\_\+size}]{\setlength{\rightskip}{0pt plus 5cm}int krpc\+\_\+string\+\_\+set\+\_\+size (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o, }
\item[{uint16\+\_\+t}]{size}
\end{DoxyParamCaption}
)}\label{a00096_af0d124108915f859d85fccd58facf12f_af0d124108915f859d85fccd58facf12f}


设置字符串长度 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
{\em size} & 长度 \\
\hline
\end{DoxyParams}

\begin{DoxyRetVals}{返回值}
{\em error\+\_\+ok} & 成功 \\
\hline
{\em 其他} & 失败 \\
\hline
\end{DoxyRetVals}
\hypertarget{a00096_a13be7946c84baeebe93977ef511e125f_a13be7946c84baeebe93977ef511e125f}{}\index{rpc\+\_\+object.\+h@{rpc\+\_\+object.\+h}!krpc\+\_\+vector\+\_\+enlarge@{krpc\+\_\+vector\+\_\+enlarge}}
\index{krpc\+\_\+vector\+\_\+enlarge@{krpc\+\_\+vector\+\_\+enlarge}!rpc\+\_\+object.\+h@{rpc\+\_\+object.\+h}}
\subsubsection[{krpc\+\_\+vector\+\_\+enlarge}]{\setlength{\rightskip}{0pt plus 5cm}void krpc\+\_\+vector\+\_\+enlarge (
\begin{DoxyParamCaption}
\item[{{\bf krpc\+\_\+object\+\_\+t} $\ast$}]{o}
\end{DoxyParamCaption}
)}\label{a00096_a13be7946c84baeebe93977ef511e125f_a13be7946c84baeebe93977ef511e125f}


扩展数组 


\begin{DoxyParams}{参数}
{\em o} & krpc\+\_\+object\+\_\+t实例 \\
\hline
\end{DoxyParams}
